﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hotel.Model
{
    [Table("Member")]
    public class Member
    {
        /// <summary>
        /// 会员id
        /// </summary>
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 会员姓名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 会员手机号
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// 会员身份证号码
        /// </summary>
        public string Card { get; set; }
        /// <summary>
        /// 会员出生年月日
        /// </summary>
        public DateTime Birthday { get; set; }
        /// <summary>
        /// 会员的性别
        /// </summary>
        public string Sex { get; set; }
        /// <summary>
        /// 会员账号是否可用  状态
        /// </summary>
        public int State { get; set; } = 1;
        /// <summary>
        /// 会员的密码
        /// </summary>
        public string Pwd { get; set; }
        /// <summary>
        /// 会员的余额
        /// </summary>
        public decimal Money { get; set; }
        /// <summary>
        /// 会员的积分
        /// </summary>
        public int Points { get; set; }
        /// <summary>
        /// 添加会员时间
        /// </summary>
        public DateTime CreateTime { get; set; }= DateTime.Now;
        /// <summary>
        /// 会员的修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 逻辑删除
        /// </summary>
        public bool? IsDeleted { get; set; }


        /// <summary>
        /// 会员等级ID   是一个外键
        /// </summary>
        public int LevelId { get; set; }
    }
}
